home *** CD-ROM | disk | FTP | other *** search
/ Archive Magazine CD 1995 / Archive Magazine CD 1995.iso / discs / prog_disc / volume_3 / issue03 / info / extras / dtext < prev    next >
Encoding:
Text File  |  1989-10-14  |  9.1 KB  |  187 lines

  1.  
  2. DTEXT (v. 0.10)
  3. ---------------
  4.  
  5. by Chris Johnson
  6.  
  7. This software was produced to run under the old Arthur OS, and has not yet
  8. been updated to make use of the RISC OS WIMP environment, although it does
  9. use a mouse/menu interface. It enables text to be entered, and printed out
  10. in a large font, four times larger than the usual printer font. Its main
  11. use is likely to be for producing small posters, or notices for display on
  12. notice boards, and has also been used for producing eg. overhead
  13. transparencies for teaching purposes, giving a much neater presentation
  14. than hand written ones.
  15.  
  16. The character set used is completely user definable, and the program has
  17. facilities to edit an existing font, or create a new font. The characters
  18. are defined on a 32 x 32 grid, and are proportionally spaced. Some
  19. primitive 'kerning' is also possible for combinations of letters such as
  20. Ta or Wa. The character set can access not only the normal printable
  21. characters but also the corresponding 'top bit set' characters (ASCII
  22. codes 160 - 255), assuming they have been defined.
  23.  
  24. The program contains code for both 9 pin Epson FX 8-bit double density
  25. graphics and 24 pin Epson LQ graphics. For the 8 pin graphics (which also
  26. work on LQ printers), each line of text uses 4 passes of the print head (8
  27. in double strike). When 24 pin graphics are used, the character
  28. definitions are expanded to 64 x 32, and 3 passes of the print head are
  29. required. The height of the characters is therefore a little smaller on 24
  30. pin printers operating in 24 pin mode. On these printers, the 8 pin
  31. graphics also work, but the characters are expanded vertically compared
  32. with the standard 9 pin printers, due to the different distance between
  33. the pins in the printhead. Users of such printers will be familiar with
  34. the different aspect ratios of these printers.
  35.  
  36.  
  37.  
  38. The program is driven from a set of menus and I think most of its
  39. operation should be clear. The notes that follow may help users find their
  40. way around the program.
  41.  
  42. Several options involve 'edit current' (text or font) or 'create new'. The
  43. difference is that for the choice of 'new' the appropriate buffers are
  44. cleared and you start out with a 'clean slate'. The clearing is
  45. IRREVERSIBLE so take care! Printing is carried out on the text in memory,
  46. so it is necessary to load a text file before any printing can be done.
  47.  
  48. When in any of the disk file loading or saving windows, operating system
  49. commands can be used by entering the star command instead of a filename.
  50. The * must be the FIRST character entered.
  51.  
  52.                             
  53. Text editing
  54. ------------
  55.  
  56. The text editor (not WYSIWYG) uses 'highlights' and 'left margin' commands
  57. a la VIEW to produce the various effects. These include 
  58.  
  59.                left justify
  60.                centre
  61.                right justify
  62.                full justification
  63.                microspacing
  64.                double strike (not on LQ 24 bit graphics)
  65.                tabbing
  66.                superscript
  67.                subscript
  68.                thick and thin underline
  69.  
  70. The cursor keys move around the text. SHIFT with cursor key moves to start
  71. or end of line.
  72.  
  73. A text document can contain up to 30 lines of text (an A4 page has room
  74. for no more than 22 lines, although if single sheets are being used the
  75. page will have less). This is normally sufficient, but can be changed by
  76. modifying some DIM statements etc. The line length is nominally set to 57
  77. characters as giving a reasonable length for typical text (remember the
  78. characters are proportionally spaced so you can get far fewer upper case
  79. letters than lower case letters in a line. However, you can switch off the
  80. auto-format if you wish to use slightly longer lines. As in VIEW, lines
  81. with ONLY a print command will not give a line feed, although the printer
  82. effect will be enabled (or cancelled). A <RETURN> on its own will print as
  83. a blank line as long as there is no other printer effect command on the
  84. same line.
  85.  
  86. When in the text editing part of the program, the function keys are used
  87. to insert the various printer commands. The function keys in conjunction
  88. with SHIFT or CTRL also control some of the editing functions (eg.
  89. insert/overwrite), and such effects as sub or superscript. A summary of
  90. the function key actions is shown onscreen while editing. If you also have
  91. the !keystrip application, then data is provided to print a function key
  92. strip for use with this program. Tabbing is controlled by the TAB key,
  93. followed by pressing a number key 1 - 9 (the 80 column width corresponds
  94. to 960 dots, the TAB stops are set to positions 100, 200,......900). The
  95. alternate character set is accessed by holding down the ALT key when
  96. typing a letter. The effect is only for one character, i.e. you have to
  97. use the ALT key in the same way as a SHIFT key, but there is nothing
  98. corresponding to CAPS LOCK.
  99.  
  100. There is a demonstration document (DTEXT.testtext) on the disk, and it is
  101. useful to examine this in the text editor (of this program!) to see how
  102. the various effects are obtained. The file DTEXT.testfont will simply
  103. print out all the defined characters of the resident font, whichever one
  104. is loaded. The disk contains one font (FONTS.slant1) which is loaded as
  105. the default font. Any undefined characters are ignored by the printing
  106. procedures (not even a space is printed).
  107.  
  108. Editing a font
  109. --------------
  110.  
  111. When editing a font, the character must be specified, and then the grid
  112. will appear. Using ALT as well will select the top bit set character.
  113. Pixels are set by clicking ADJUST (right button) and cleared by clicking
  114. SELECT (left button). The button can be simply held down when setting a
  115. row of pixels. The options in the menu are fairly self explanatory. When
  116. moving the character within the grid, selecting with the left button will
  117. move by one unit, while clicking with the right button will move the
  118. character by four units. If any part of the character goes out of the
  119. grid, then any pixels lost are NOT recoverable. The set spacing option
  120. defines the space between the character and the next during printing. The
  121. default is a spacing of two units. Setting a value of zero will allow the
  122. adjacent character to join up. Remember, if you change the spacing, then
  123. this becomes the new default value for all subsequent characters defined,
  124. until changed again.
  125.  
  126. The reassign function is used to save a little work. For example, if you
  127. have just designed the character P, then select the 'store character'
  128. option to save the definition. When asked for the next character to
  129. define, call back the P definition. This will load the defining grid with
  130. the character P. Now select 'reassign' and reassign the definition to the
  131. character R. The extra pixels can now be set and when the character is
  132. stored it will be as the character R, not P.
  133.  
  134. The character definition as shown on the grid is not transferred to the
  135. character definition buffer until the option 'store' is selected. Thus if
  136. you begin to edit a character, and then change your mind, simply select
  137. 'abandon' from the menu. The original definition will remain unchanged.
  138.  
  139. When a definition is stored, you will be asked for the 'offset'. For most
  140. characters this will be zero. However, for characters such as upper case T
  141. or V, characters following which do not have a 'top' could be closed up a
  142. little. The offset defines how many pixels a following letter of the
  143. correct type could be closed up without overlapping. Just pressing return
  144. will leave the current value (either default or that set when the
  145. character was previously defined) unchanged. During the printing process
  146. the program will close up eg. Ta but not Th as the top of the h would
  147. interfere with the T. When the character definition is operated upon, a
  148. flag is set if the character has a 'top', and the printing routines check
  149. this flag to see whether the character can be closed up or not.
  150.  
  151. The stored character definitions exist only in memory during the
  152. designing process. When you quit from the character definer, you will
  153. be offered an opportunity to save the definitions to disk. This will
  154. be your only chance, as you cannot save the font definition file from
  155. the main menu. The font you have edited also remains in memory and
  156. will be used for any printing, until another font file is loaded. As a
  157. corollary, if you have had second thoughts about the changes you have
  158. made to a font file then either don't save it, or at least save it
  159. under a different filename.
  160.  
  161.  
  162. If you have any comments on this program, or would like to suggest
  163. ways in which it could be improved then the author can be contacted
  164. directly.
  165.  
  166. Chris Johnson
  167. 7 Lovedale Grove
  168. Balerno
  169. Edinburgh
  170. EH14 7DR
  171.  
  172. If you wish to enter into the `shareware' concept in the full sense
  173. then contributions, however small, will be gratefully received by the
  174. author. Registration would, of course, entitle the user to free
  175. upgrades of the software (send a blank disk).
  176.  
  177. If, in any communication, you make specific reference to the program
  178. code, then please (a) quote the version number (b) refer only to the
  179. program as issued and (c) do not renumber it. Please send an SAE if
  180. you require a reply.
  181.  
  182. I hope you find the program of some use. If there is sufficient
  183. interest, then there may be a full RISC OS version produced in the
  184. future.
  185.  
  186. CJ 12/10/1989
  187.